import type { BaseResponse } from "../../baseType";
//一级分类数据类型
export interface CategoryData {
  id?: number;
  name: string;
  category1Id?: number;
  category2Id?: number;
}
//分类属性值数据
export interface AttrValueInfo {
  attrId?: number;
  id?: number;
  valueName: string;
}
//分类属性数据
export interface AttrInfo {
  id?: number;
  attrName: string;
  categoryId?: number;
  categoryLevel?: number;
  attrAndValue?: string;
  attrValueList: AttrValueInfo[];
}
//分类响应类型
export interface CategoryListResp extends BaseResponse {
  data: CategoryData[];
}

//分类属性响应类型
export interface AttrInfoListResp extends BaseResponse {
  data: AttrInfo[];
}
